//
//  HttpManager.h
//  MakeNum
//
//  Created by 기대 여 on 08. 12. 14.
//  Copyright 2008 삼성전자. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol HttpManagerDelegate;

@interface HttpManager : NSObject {
    NSString *url;
	id <HttpManagerDelegate> delegate;
	
	NSMutableData *receivedData;
}

@property (nonatomic, assign) NSString *url;
@property (nonatomic, assign) id delegate;
@property (nonatomic, retain) NSMutableData *receivedData;

-(id)initWithUrl:(NSString*)aURL delegate:(id<HttpManagerDelegate>)aDelegate;

@end

@protocol HttpManagerDelegate<NSObject>

-(void)connectionDidReceiveResponse:(NSURLResponse*)response;
-(void)connectionDidFail:(HttpManager*)aHttpManager;
-(void)connectionDidFinish:(HttpManager*)aHttpManager;
-(void)connectionDidReceiveData:(HttpManager*)aHttpManager;

@end